package com.wutong.eams.mapper;

import com.wutong.eams.entity.Class;
import com.wutong.eams.other.ConditionBuilder;

import java.util.List;

public interface ClassMapper extends BaseMapper<Class> {

    @Override
    default java.lang.Class<Class> getEntityClass() {
        return Class.class;
    }

    @Override
    default String getTableName() {
        return "classes";
    }

    default List<Class> getAllClasses() {
        return select(ConditionBuilder.NONE_CONDITION);
    }
}
